package com.tbsoft.ehr.action.sysdata;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.tbsoft.ehr.action.BaseAction;
import com.tbsoft.ehr.model.Agency;
import com.tbsoft.ehr.service.agency.AgencyService;

public class AgencyAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static final Log log = LogFactory.getLog(AgencyAction.class);

	private List<Agency> agencyLst;
	private AgencyService agencyService;
	
	public List<Agency> getAgencyLst() {
		return agencyLst;
	}

	public void setAgencyLst(List<Agency> agencyLst) {
		this.agencyLst = agencyLst;
	}

	public AgencyService getAgencyService() {
		return agencyService;
	}

	public void setAgencyService(AgencyService agencyService) {
		this.agencyService = agencyService;
	}

	public String queryAll(){	
		log.info("获取机构");
		this.agencyLst = this.getAgencyService().getAllAgency();
		return "queryResult";
	}
}
